<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>首页</title>
</head>
<body>
	<h2>Hello World!</h2>
	
	<a href="springmvc/testRedirect">Test Redirect</a>
	<br/><br/>
	
	
	<a href="springmvc/testView">Test View</a>
	<br/><br/>
	
	
	<a href="springmvc/testViewAndViewResolver">Test ViewAndViewResolver</a>
	<br/><br/>
	
	
	
	<!-- 
		模拟修改操作
		1.  原始数据为： 1,Tom,123456,tom@atguigu.com,12
		2. 密码不能被修改
		3. 表单回显，模拟操作直接在表单填写对应的属性值
	 -->
	<form action="springmvc/testModelAttribute" method="Post">
		<input type="hidden" name="id" value="1" />
		username:<input type="text" name="username" value="Tom" />
		<br/>
		email:<input type="text" name="email" value="tom@atguigu.com" />
		<br/>
		age:<input type="text" name="age" value="13" />
		<br/>
		<input type="submit" value="Submit" />
	</form>
	
	<a href="springmvc/testSessionAttirbute">Test SessionAttirbute</a>
	<br/><br/>
	
	
	<a href="springmvc/testMap">Test Map</a>
	<br/><br/>
	
	<a href="springmvc/testModelAndView">Test ModelAndView</a>
	<br/><br/>
	
	<form action="springmvc/testPojo" method="post">
		username:<input type="text"  name="username" />
		<br/>
		password:<input type="password"  name="password" />
		<br/>
		email:<input type="text"  name="email" />
		<br/>
		age:<input type="text"  name="age" />
		<br/>
		city:<input type="text"  name="address.city" />
		<br/>
		province:<input type="text"  name="address.province" />
		<br/>
		<input type="submit" value="Submit" />
	</form>
	<br/><br/>
	
	<a href="springmvc/testCookieValue">Test CookieValue</a>
	<br/><br/>
	
	
	<a href="springmvc/testRequestParam?username=zzc&age=12">Test RequestParam</a>
	<br/><br/>
	
	<form action="springmvc/testRest/1" method="post">
		<input type="hidden" name="_method" value="PUT" />
		<input type="submit" value="TestRest PUT"/>
	</form>
	<br/><br/>
	
	<form action="springmvc/testRest/1" method="post">
		<input type="hidden" name="_method" value="DELETE" />
		<input type="submit" value="TestRest DELETE"/>
	</form>
	<br/><br/>
	
	<form action="springmvc/testRest" method="post">
		<input type="submit" value="TestRest POST"/>
	</form>
	<br/><br/>
	
	<form action="springmvc/testRest" method="post">
		<input type="submit" value="TestRest POST"/>
	</form>
	<br/><br/>
	
	<a href="springmvc/testAntPath/dsfgfdhgf/abc">Test AntPath</a>
	<br/><br/>
	
	<a href="springmvc/testParamsAndHeaders?username=zzc&age=12">testParamsAndHeaders</a>
	<br/><br/>
	
	<a href="springmvc/testMethod">test Method</a>
	<br/><br/>
	
	<a href="springmvc/testRequestMapping">testRequestMapping</a>
	<br/><br/>
	
	<a href="helloworld">Hello World</a>
	<br/><br/>

	<a href="springmvc/testParamsAndHeaders?username=atguigu&age=10">Test
		ParamsAndHeaders</a>
	<br />
	<br />

	<form method="POST" action="springmvc/testMethod">
		<input type="submit" value="submit" />
	</form>
	
	
</body>
</html>














